package com.qf.day06.fish;

public class Fish extends Animal{
    public Fish() {
    }

    public Fish(String type, int age, String sex) {
        super(type, age, sex);
    }
    public void swim(){
        System.out.println(super.getType()+"正在水里游");
    }
    @Override
    public String toString() {
        return "Fish{} " + super.toString();
    }
}
